package com.yq.cp.controller.wx;


import com.yq.cp.service.wx.WxService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

@RequestMapping("/wx")
@RestController
public class WxController {

    @Resource
    WxService wxService;
    /**
     * 微信支付回调
     */
    @RequestMapping("/callback")
    public String callback(HttpServletRequest httpServletRequest) {
        return wxService.callback(httpServletRequest);
    }

}
